<template>
	<view>
		<view class="page-header" :style="{height: statusBarHeight + 44 + 'px'}">
		  <view :style="{height: statusBarHeight + 'px'}"></view>
		  <view class="vheader">
		    <view class="title">{{pageTitle || 'V券'}}</view>
		    <navigator open-type='navigateBack' class="vback" v-if="backToggle"></navigator>
		  </view>
		</view>
		<view class="page-headerHL" :style="{height: statusBarHeight + 44 + 'px'}"></view>
	</view>
</template>

<script>
	const app = getApp()
	export default {
		data(){
			return {
				statusBarHeight: uni.getStorageSync('statusBarHeight')
			}
		},
		props: {
			"pageTitle": String,
			"backToggle": {
				default: false
			}
		},
		created() {
			app.globalData.topHeight = uni.getStorageSync('statusBarHeight') + 44;
		}
	}
</script>

<style>
</style>
